package com.zzty.service;

import java.util.Date;
import java.util.List;

public interface SelfExamService {
    public String startSelfExam(int userId);        //开始竞赛
    public void addStartTransaction(Integer selfExamId,Integer userId,String nowDate);
    public Boolean endSelfExam(Integer userId,String answerUrl);          //结束竞赛
    public List historyQuestion();      //历史题目
    public String searchAnswerUrlById(int id);        //我的代码
    public void checkWork();            //批改作业
    public List getContentByDate(String date);
    public List getSelfExamToTable();
    public Integer getUserIdFromTransaction(Integer transactionId);
    public Boolean setWinner(String date,Integer winnerId);
    public String getQuestionByDate(String date);
    public Integer getSelfExamIdDate(String date,Integer clazzId);
    public Boolean checkLogin(Integer selfExamId,Integer userId);
    public Boolean checkCommit(Integer selfExamId,Integer userId);
    public void setGrade(Integer transactionId,Integer score);
}
